/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_zb.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_ZB
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_zb.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "app97_global.h" 
#include "table_ppm.h"

CTable_PPM_ZB::CTable_PPM_ZB( )
 :NPCRecordSet( )
{
  setTableName( "PPM_ZB" );
  prepareTable();
  prepareQuery();
 
  ZBBM.setField( "ZBBM", DATA_CHAR, 500, 1);
  makeTableItem( ZBBM );
  makeKeyItem( ZBBM ); 
  ZBFL.setField( "ZBFL", DATA_CHAR, 50, 2 );
  makeTableItem( ZBFL );
  makeKeyItem( ZBFL ); 
  ZBMC.setField( "ZBMC", DATA_CHAR, 100, 0 );
  makeTableItem( ZBMC );
  ZBZS.setField( "ZBZS", DATA_CHAR, 500, 0 );
  makeTableItem( ZBZS );
  ZBGS.setField( "ZBGS", DATA_CHAR, 500, 0 );
  makeTableItem( ZBGS );
  REMARK.setField( "REMARK", DATA_CHAR, 500, 0 );
  makeTableItem( REMARK );
}


CTable_PPM_ZB::CTable_PPM_ZB( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_ZB" );
  prepareTable();
  prepareQuery();
 
  ZBBM.setField( "ZBBM", DATA_CHAR, 500, 1 );
  makeTableItem( ZBBM );
  makeKeyItem( ZBBM ); 
  ZBFL.setField( "ZBFL", DATA_CHAR, 50, 2 );
  makeTableItem( ZBFL );
  makeKeyItem( ZBFL ); 
  ZBMC.setField( "ZBMC", DATA_CHAR, 100, 0 );
  makeTableItem( ZBMC );
  ZBZS.setField( "ZBZS", DATA_CHAR, 500, 0 );
  makeTableItem( ZBZS );
  ZBGS.setField( "ZBGS", DATA_CHAR, 500, 0 );
  makeTableItem( ZBGS );
  REMARK.setField( "REMARK", DATA_CHAR, 500, 0 );
  makeTableItem( REMARK );
}

CTable_PPM_ZB::~CTable_PPM_ZB( )
{
    close();
}

